import 'package:flutter/material.dart';
import 'package:ls_work/a_yyt/models/address_book_entity.dart';
import 'package:ls_work/util/utils.dart';
import 'package:ls_work/widgets/load_image.dart';

class AddressBookCell extends StatelessWidget {
  final AddressBookInfo? info;
  AddressBookCell({Key? key,this.info});
  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: () {Utils.launchTelURL('${info?.mobile??""}');},
      child: Container(
          padding: EdgeInsets.fromLTRB(12, 10, 12, 10),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.start,
            children: <Widget>[
              Text('${info?.name??""}'),
              SizedBox(
                width: 20,
              ),
              Expanded(
                child: Text('${info?.mobile??""}'),
              ),
              LoadAssetImage('home/home_mobil')
              //Icon(Icons.keyboard_arrow_right),
            ],
          )),
    );
  }
}
